LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-11-2021, 08:32 AM   #1
M0M0
Member
 
Registered: Sep 2020
Location: Germany
Distribution: Slackware
Posts: 230

Rep: Reputation: 20
How to switch to an older kernel


I also asked that here:

https://www.linuxquestions.org/quest...183/page2.html

but thought it would be better idea to make a new thread for this.

Since I'm one of those where the system freezes regularly with the 5.10 kernel I would like to switch back to an older version. What is the easiest way to do that?
 
Old 01-11-2021, 09:12 AM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Easy kernel downgrade would be install older kernel and kernel modules pakages, then update bootloader config, it requires having or finding these older packages tough

Did you try the modesetting X video driver?
In /etc/X11/xorg.conf.d remove video driver config file if present, then create a new one

/etc/X11/xorg.conf.d/10-modesetting.conf:
Code:
Section "Device"
     Identifier "Modesettings"
     Driver "modesetting"
     BusID  "PCI:1:0:0"
EndSection
Bus ID value should be ok, check with /sbin/lspci | grep -i vga (just in case)
 
2 members found this post helpful.
Old 01-11-2021, 09:29 AM   #3
M0M0
Member
 
Registered: Sep 2020
Location: Germany
Distribution: Slackware
Posts: 230

Original Poster
Rep: Reputation: 20
Ok, so does someone have these packages?

The file does not exist and the output of /sbin/lspci | grep -i vga is

00:02.0 VGA compatible controller: Intel Corporation HD Graphics 620 (rev 02)

So BusID "PCI:1:0:0" is not correct, right?
 
Old 01-11-2021, 09:47 AM   #4
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by M0M0 View Post
Ok, so does someone have these packages?
Try here: http://slackware.uk/cumulative/
 
2 members found this post helpful.
Old 01-11-2021, 10:00 AM   #5
derekn13
Member
 
Registered: Sep 2012
Distribution: Slackware
Posts: 53

Rep: Reputation: 29
The absolute simplest way to switch to the modesetting driver is to uninstall (slackpkg remove) the xf86-video-intel package.

Yes, I know that's a violation of the Slackware "install everything" rule. But it's also easy to undo -- just reinstall the package.
 
1 members found this post helpful.
Old 01-11-2021, 10:04 AM   #6
M0M0
Member
 
Registered: Sep 2020
Location: Germany
Distribution: Slackware
Posts: 230

Original Poster
Rep: Reputation: 20
So first I remove the package and then I reinstall it? Has something changed then?
 
Old 01-11-2021, 10:09 AM   #7
derekn13
Member
 
Registered: Sep 2012
Distribution: Slackware
Posts: 53

Rep: Reputation: 29
Sorry, let me clarify. If you remove the xf86-video-intel package, the X server should automatically pick up the modesetting driver. Normally the intel driver has precedence -- if the X server finds both intel and modesetting, it will use intel.

If you later decide you want to undo this change, for whatever reason, all you have to do is reinstall xf86-video-intel.

I removed xf86-video-intel on my laptop a couple weeks ago, and I've been running the modesetting driver since then, with no crashes.
 
2 members found this post helpful.
Old 01-11-2021, 10:51 AM   #8
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by derekn13 View Post
Sorry, let me clarify. If you remove the xf86-video-intel package, the X server should automatically pick up the modesetting driver. Normally the intel driver has precedence -- if the X server finds both intel and modesetting, it will use intel.

If you later decide you want to undo this change, for whatever reason, all you have to do is reinstall xf86-video-intel.

I removed xf86-video-intel on my laptop a couple weeks ago, and I've been running the modesetting driver since then, with no crashes.
Why do you recommend removing the xf86-video-intel package instead of blacklisting the intel_drv module?
 
Old 01-11-2021, 11:17 AM   #9
M0M0
Member
 
Registered: Sep 2020
Location: Germany
Distribution: Slackware
Posts: 230

Original Poster
Rep: Reputation: 20
Ok I removed xf86-video-intel and hope that this will solve the problem,thanks.

@Chuck56 intel_drv is a kernel module? Why do you think blacklisting this would be superior to removing xf86-video-intel?
 
Old 01-11-2021, 11:55 AM   #10
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Quote:
Originally Posted by M0M0 View Post
Ok, so does someone have these packages?

The file does not exist and the output of /sbin/lspci | grep -i vga is

00:02.0 VGA compatible controller: Intel Corporation HD Graphics 620 (rev 02)

So BusID "PCI:1:0:0" is not correct, right?
Correct, it should be: "PCI:0:2:0"
Note that if lspci returns only one VGA entry, you shouldn't need to add the BusID line in xorg device conf, it's only relevant for more than one video device
 
2 members found this post helpful.
Old 01-11-2021, 12:10 PM   #11
derekn13
Member
 
Registered: Sep 2012
Distribution: Slackware
Posts: 53

Rep: Reputation: 29
Quote:
Originally Posted by Chuck56 View Post
Why do you recommend removing the xf86-video-intel package instead of blacklisting the intel_drv module?
Because:

(1) When I first tried to figure out how to switch from intel to modesetting (about two weeks ago), all of the info I could find online suggested doing that.

(2) I believe it's simpler -- no need to figure out which BusID to use.

I presume either approach will work. What is the advantage of the config file approach?

You mentioned blacklisting. I'm assuming you mean the config file, as described by keefaz. If you have a third option, I'd be interested in hearing about it.
 
Old 01-11-2021, 12:13 PM   #12
derekn13
Member
 
Registered: Sep 2012
Distribution: Slackware
Posts: 53

Rep: Reputation: 29
Quote:
Originally Posted by M0M0 View Post
@Chuck56 intel_drv is a kernel module? Why do you think blacklisting this would be superior to removing xf86-video-intel?
intel_drv and modesetting_drv are X drivers (implemented with shared libraries), not kernel modules. If you look in /usr/lib64/xorg/modules/drivers, you'll see modesetting_drv.so and intel_drv.so. (The intel driver will be missing if you've uninstalled xf86-video-intel.)
 
1 members found this post helpful.
Old 01-11-2021, 12:14 PM   #13
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by M0M0 View Post
Ok I removed xf86-video-intel and hope that this will solve the problem,thanks.

@Chuck56 intel_drv is a kernel module? Why do you think blacklisting this would be superior to removing xf86-video-intel?
I asked if blacklisting was a possibility instead of package removal. If an xorg module can't be blacklisted then that would answer my question.
 
Old 01-11-2021, 01:08 PM   #14
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,606

Rep: Reputation: 3475Reputation: 3475Reputation: 3475Reputation: 3475Reputation: 3475Reputation: 3475Reputation: 3475Reputation: 3475Reputation: 3475Reputation: 3475Reputation: 3475
Save in a file named: /etc/X11/xorg.conf.d/20-intel.conf the following content
Code:
Section "Device"
    Identifier  "Intel Graphics"
    Driver      "modesetting"
    Option      "AccelMethod"    "glamor"
    Option      "DRI"            "3"
EndSection
After restart, for the Intel graphics will be used the modesetting driver which is much more stable.

That's all.

Last edited by LuckyCyborg; 01-11-2021 at 01:16 PM.
 
4 members found this post helpful.
Old 01-11-2021, 05:47 PM   #15
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by LuckyCyborg View Post
Save in a file named: /etc/X11/xorg.conf.d/20-intel.conf the following content
Code:
Section "Device"
    Identifier  "Intel Graphics"
    Driver      "modesetting"
    Option      "AccelMethod"    "glamor"
    Option      "DRI"            "3"
EndSection
After restart, for the Intel graphics will be used the modesetting driver which is much more stable.

That's all.
Of course, I forgot all about the xorg.conf file. It's been years since I needed to setup one of those files. Thanks LuckyCyborg!
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Update WhatsApp Now, Adobe Warning Creative Cloud Users with Older Apps, Kernels Older than 5.0.8 Are Vulnerable to Remote Code Execut LXer Syndicated Linux News 0 05-14-2019 07:12 PM
[SOLVED] using switch in a function to call another function with a switch but it is not going into 2 switch ... BW-userx Programming 2 08-20-2017 11:47 PM
Need to match older machine to an older version of Linux fredb47 Linux - Distributions 10 10-27-2011 11:08 AM
thread switch results in kernel stack switch superstition Linux - General 1 05-17-2005 11:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration